from django.conf.urls.defaults import *
from django.contrib import databrowse
from nexo.wiki.models import *

databrowse.site.register(Page)
databrowse.site.register(Content)

urlpatterns = patterns('',
    # Example:
    # (r'^nexo/', include('nexo.foo.urls')),

    # Uncomment this for admin:
    (r'^$', 'nexo.views.index'),
    (r'^accounts/login/$', 'nexo.views.index'),
    (r'^logout/$', 'nexo.views.logoutView'),
    (r'^admin/', include('django.contrib.admin.urls')),
    (r'^wiki/', include('nexo.wiki.urls')),
    (r'^databrowse/(.*)', databrowse.site.root),
    # Only for development
    (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': './media'})
)
